package mianshi;

import java.lang.reflect.Method;

/**
 * TOOD
 *
 * @author long
 * @date 2020-08-12 19:46
 */
public class MethodInvokeTest {
    public static void main(String[] args) throws Exception{
        String str="hello";
        Method m=str.getClass().getMethod("toUpperCase");
        System.out.println(m.invoke(str));
    }
}
